#ifndef __RTC_H_
#define __RTC_H_

#include "Includes.h"
#include "stm32f10x.h"
#include "DRV_Systick.h"

typedef struct{
    vu16 w_year;
    vu16 w_month;
     vu8 w_date;
     vu8 week;
    
    vu8 hour;
    vu8 min;
    vu8 sec;
}_calendar_obj;

extern _calendar_obj calendar;


void RTC_Init(void);
u8 RTC_Get(_calendar_obj *pcalendar);
u8 RTC_Set(u16 syear, u8 smon, u8 sday, u8 hour, u8 min, u8 sec);


#endif
